package butonrosu;

import butonrosu.RedFrame.Command;
import java.awt.Color;
import javax.swing.JMenuItem;
import javax.swing.JPanel;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Andre
 */
public class butonCommand extends JMenuItem implements Command{
    private String RED;
    private final JPanel jPanel1;
    
    butonCommand(String RED, JPanel jPanel1){
        this.RED=RED;
        this.jPanel1=jPanel1;
    }

    @Override
    public void execute() {
        jPanel1.setBackground(Color.red);
        throw new UnsupportedOperationException("Not supported yet.");
    }
    
}
